﻿using ConfigServices;
using Microsoft.Extensions.DependencyInjection;
using System;
using System.Collections.Generic;
using System.Text;

namespace Microsoft.Extensions.DependencyInjection
{
    public static class ConfigServicesExtensions
    {
        public static void AddIniFileConfigService(this IServiceCollection services, string filePath)
        {
            services.AddScoped<IConfigService, IniFileConfigService>(_ => new IniFileConfigService() { FilePath = filePath });
        }

        public static void AddLayeredConfigReader(this IServiceCollection services)
        {
            services.AddScoped<IConfigReader, LayeredConfigReader>();
        }
    }
}
